package LinkedList.Two_Way;

public class test {
    public static void main(String[] args) {
        Two_wayLinkedList twoWayLinkedList = new Two_wayLinkedList();
        Two_wayLinkedList twoWayLinkedList1 = new Two_wayLinkedList();
        twoWayLinkedList.addFirst(1);
        twoWayLinkedList.addFirst(2);
        twoWayLinkedList.addFirst(3);
        twoWayLinkedList.addFirst(4);
        twoWayLinkedList.addFirst(5);
        twoWayLinkedList.display();
        twoWayLinkedList.addIndex(3, 10);
        twoWayLinkedList.display();
        //System.out.println(twoWayLinkedList.size());
        //System.out.println(twoWayLinkedList.contains(5));


        /*twoWayLinkedList1.addLast(2);
        twoWayLinkedList1.addLast(4);
        twoWayLinkedList1.addLast(6);
        twoWayLinkedList1.addLast(8);
        twoWayLinkedList1.addLast(10);
        System.out.println(twoWayLinkedList1.size());
        twoWayLinkedList1.display();*/

    }
}
